package BO;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import javax.persistence.PersistenceContext;
import javax.persistence.PersistenceUnit;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */



/**
 *
 * @author Wase
 */
public class MyEntityManager {
    @PersistenceUnit
    private EntityManagerFactory emf = Persistence.createEntityManagerFactory("ToWaCommunityPU");
    @PersistenceContext
    private EntityManager em = emf.createEntityManager();
    
    public MyEntityManager() {
    }
   
    
    
}


